﻿namespace Falafel.Controls.Dialogs
{
    public partial class MessageDialog
    {
        public MessageDialog(string text, string title, DialogBaseType dialogBaseType, DialogBaseButton dialogBaseButton = DialogBaseButton.OkCancel, object userInfo = null)
        {
            InitializeComponent();
            Init(title, dialogBaseButton, dialogBaseType, userInfo);

            SetText(text);

            LayoutButtons();
        }

        public void SetText(string text)
        {
            TextBloxText.Text = text;
        }
    }
}
